<?php

namespace App\Console\Commands;

use App\Biz\IntervieweeBiz;
use App\Biz\IntervieweeReservesBiz;
use App\Biz\VisitorReservesBiz;
use App\Exceptions\TokenExpiredException;
use App\Models\IntervieweeInformation;
use Illuminate\Console\Command;
use Psr\SimpleCache\InvalidArgumentException;

class VisitorApproval extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'visitor:approval';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '访客审核';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @param IntervieweeReservesBiz $intervieweeReservesBiz
     * @return void
     * @throws InvalidArgumentException
     */
    public function handle(IntervieweeReservesBiz $intervieweeReservesBiz)
    {
        $intervieweeReservesBiz->visitorReservesListApproval();

        $this->info('访客审核完成');//打印信息
    }
}
